package com.exchange.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.exchange.entity.pojo.PowerStatus;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.exchange.entity.vo.ManagerPowerVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Administrator
* @description 针对表【power_status】的数据库操作Mapper
* @createDate 2024-04-27 19:54:09
* @Entity com.exchange.entity.pojo.PowerStatus
*/
public interface PowerStatusMapper extends BaseMapper<PowerStatus> {

    List<PowerStatus> powerStatesList(Integer id);

    Page<ManagerPowerVo> managerPowerList(@Param("ipage") IPage iPage, @Param("mid") Integer mid, @Param("id") Integer id, @Param("pid") Integer pid,@Param("status") Integer status);

    ManagerPowerVo managerPowerFindId(Integer id);

    boolean addManagerPower(@Param("pid") Long pid, @Param("pname") String pname);
}




